Add _load_script function to put Javascript inside a pagelet