Move script into div