Removed unnecessary  dependency. Converted params object to standard Javascript format