Move script from html into min.'s