added working js