checkAvailable renamed to isAvailabe
js file added