moved javascript back into html