moved js to erb
modified files