fixing js
fixed dropdown problem
removing trailing comma for records
fixed #178