cleaned up ajax call, made function declarations use => instead of -> for consistencies sake