Created JS and moved test HTML

Created JS and moved test HTML