added a function to read uri parameters in javascript