used asset pipeline for js, updated .htaccess