Fix JavaScript resources path and moves resources file

Change-Id: Ic0f67af22689de2cea0accff4bea99a46ee6938f