Fixed a problem with Javascript creating new arrays of size that is a float. Changed the size to an int.