JS in ext file