fix js scripts not called on built files