allow non-js extension for layer