Fixed superfluous gem requires
Added javascript flag
Set server_flag to false by default