check that shaders list is not null
(it is null on js target for some objects)
initialize lineSpacing var
(in js target in was undefined that caused error in computing text height)
Merge pull request #78 from darkdarkdragon/js_fixes

Js fixes