Added option to change object ID passed. Fixed issue with anchor redirection

Having the ability to change the default object ID parameter passed is a nice option. Also, fixed an issue with anchor redirection (some browsers handle this differently).