Osc routines for JS added