<!DOCTYPE html>
<html>
<body>
<div id="pic1">The #pic1 element</div>
<script type='text/javascript'>
var pic1 = document.getElementById('pic1');
var someFunc = function () {
console.log('pic1: ' + pic1);
pic1.style.left = "100px";
}
someFunc();
</script>
</body>
</html>