fix available logic, remove js
Merge pull request #9 from droom/fix/available

fix available logic, remove js