Javascript Resource Asset implementation