fix js load for multiple instances
Signed-off-by:KProvance <kevin.provance@gmail.com>