fixed json escaping in js code, naming incosistency
javascript asset file for asset pipeline