Fixed adding of javascripts