fixed many errors/lints in the js file, renamed .new method to .create and .event to .story