fixed javascript base dir issues as well as image loading problem. You must check for undefineds
Merge branch 'prof'