fix javascript deployment