removed unneeded code from js and lua init.