Securing Api With Multiple Parameters In Javascript