got rid of unnecessary changed
extracted js out of application