Adding JavaScript tips for rails