Transform PHP Variable to JavaScript in Laravel 5