added js support for rails 3.0