Regular expression for validating url in javascript