Fixed regression that caused errors when js is loaded after form