added js dependency support for rails