Added Javascript allow code.