moved js back into home template