uploading with laravel extention, js structure