Update javascript

-added number converter function for card value
-added functionality for all five levels