moved javascript to its own file. minor ui changes