get rid of extra script file and use inline to try and make things cleaner