Fixed inputs to JS functions

Changed primary input area into a textarea in order to enable proper
array input for two of the functions. Also tweaked run button position.