Initail ajax on rails