Removed hardcoding in jquery code