fix javascript and add assets