NEW: added asynchronous javascript request to the rails controller