Adding lazy script load support, removing old on_load and on_unload support