move jQuery back to asset pipeline, fix issues with magnigic popup css